package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import com.siemens.operation.*;

public final class configservice_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=utf-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Language\" content=\"zh-cn\">\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; utf-8\">\r\n");
      out.write("\t\t<meta name=\"description\" content=\"配置管理\">\r\n");
      out.write("\t\t<title>配置管理</title>\r\n");
      out.write("\t</head>\r\n");
      out.write("\r\n");
      out.write("\t<body>\r\n");
      out.write("\t\t<br>\r\n");
      out.write("\t\t<center><h2>配&nbsp;&nbsp;&nbsp;置&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;理</h2></center>\r\n");
      out.write("\t\t<hr />\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<center><h3>Group配置管理</h3></center>\r\n");
      out.write("\t\t<table cellpadding=3 cellspacing=1 align=center class=tableborder1\r\n");
      out.write("\t\t\tborder=\"0\" width=\"98%\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=25% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>序 号</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=40% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>配置项</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=35% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>配置值</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t");

				List<ConfigEntity> group = PropertiesConfig.getGroup();
				int groupId = 0;
				for(ConfigEntity c:group){
					++groupId;
					String name = c.getName();
					String value = c.getValue();
			
      out.write("\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td class=tablebody2 valign=middle align=center width=\"\">");
      out.print(groupId);
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td class=tablebody1 valign=middle width=\"\">");
      out.print(name);
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td class=tablebody2 align=\"center\" valign=middle width=\"\">");
      out.print(value);
      out.write("</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t");

				}
			
      out.write("\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t<br>\r\n");
      out.write("\t\t<br>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<center><h3>IM配置管理</h3></center>\r\n");
      out.write("\t\t<table cellpadding=3 cellspacing=1 align=center class=tableborder1\r\n");
      out.write("\t\t\tborder=\"0\" width=\"98%\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=25% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>序 号</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=40% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>配置项</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=35% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>配置值</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t");

				List<ConfigEntity> im = PropertiesConfig.getIm();
				int imId = 0;
				for(ConfigEntity c:im){
					++imId;
					String name = c.getName();
					String value = c.getValue();
			
      out.write("\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td class=tablebody2 valign=middle align=center width=\"\">");
      out.print(imId);
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td class=tablebody1 valign=middle width=\"\">");
      out.print(name);
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td class=tablebody2 align=\"center\" valign=middle width=\"\">");
      out.print(value);
      out.write("</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t");

				}
			
      out.write("\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<br>\r\n");
      out.write("\t\t<br>\r\n");
      out.write("\t\t<center><h3>Presence配置管理</h3></center>\r\n");
      out.write("\t\t<table cellpadding=3 cellspacing=1 align=center class=tableborder1\r\n");
      out.write("\t\t\tborder=\"0\" width=\"98%\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=25% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>序 号</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=40% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>配置项</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td valign=middle align=center height=25 width=35% background=\"images/bg2.gif\"\r\n");
      out.write("\t\t\t\t\twidth=\"\">\r\n");
      out.write("\t\t\t\t\t<font color=\"#ffffff\"><b>配置值</b>\r\n");
      out.write("\t\t\t\t\t</font>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\r\n");
      out.write("\t\t\t");

				List<ConfigEntity> presence = PropertiesConfig.getPresence();
				int presenceId = 0;
				for(ConfigEntity c:presence){
					++presenceId;
					String name = c.getName();
					String value = c.getValue();
			
      out.write("\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td class=tablebody2 valign=middle align=center width=\"\">");
      out.print(presenceId);
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td class=tablebody1 valign=middle width=\"\">");
      out.print(name);
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td class=tablebody2 align=\"center\" valign=middle width=\"\">");
      out.print(value);
      out.write("</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t");

				}
			
      out.write("\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<!--文件尾开始-->\r\n");
      out.write("\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"\r\n");
      out.write("\t\t\talign=\"center\" height=\"28\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td height=\"17\" background=\"images/bot_bg.gif\">\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"\r\n");
      out.write("\t\t\talign=\"center\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td bgcolor=\"#f1f1f6\" height=\"53\" valign=\"center\">\r\n");
      out.write("\t\t\t\t\t<p align=\"center\">\r\n");
      out.write("\t\t\t\t\t\tCopyright &copy;2009 - 2011\r\n");
      out.write("\t\t\t\t\t\t<a href=\"http://www.nokiasiemensnetworks.com/\"><b><font\r\n");
      out.write("\t\t\t\t\t\t\t\tface=\"Verdana,\">nsn.com.cn</font>\r\n");
      out.write("\t\t\t\t\t\t</b>\r\n");
      out.write("\t\t\t\t\t\t<br>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
